<div class="modal fade modal-md" id="modelContent">
	<div class="modal-dialog modal-md">
        <div class="modal-content"></div>
    </div>
</div>
<div class="portlet box green">
	<div class="portlet-title">
	    <div class="caption"><i class="fa fa-cog"></i>账房 > 单据管理 > 退货单 </div>
		<div class="tools">
			<a href="javascript:;" class="collapse right" data-original-title="" title=""> </a>
    	</div>
    	<div class="actions">
			<a href="javascript:;" class="btn white btn-sm ajax-search"><i class="fa fa-search"></i> 查询 </a>
			<a href="javascript:;" class="btn white btn-sm search-reset"><i class="fa fa-eraser"></i> 清除 </a>
		</div>
	</div>
	<div class="portlet-body form">
	   	<form action="/orderReGoods/list" class="form-horizontal" method="get" id="searchForm" onsubmit="return false">
			<div class="form-body">
				<div class="row">
					<div class="form-group">
						<div class="col-md-2">
							<label class="col-md-4 control-label">退货单号：</label>
							<div class="col-md-8">
						    	<input type="text" class="form-control" name="id" value="$!search.id">
							</div>
						</div>
						<div class="col-md-3">
							<label class="col-md-4 control-label">退货仓库：</label>
							<div class="col-md-6">
						    	<select name="wareHouserId" class="form-control">
						    		<option value=""></option>	
									#foreach($item2 in $WareHouseList)
									<option value="$!item2.id" #if($!item2.id==$!wareHouserId) selected="selected" #end>$!item2.corporateName</option>	
									#end								
								</select>
							</div>
						</div>
						<div class="col-md-2">
							<label class="col-md-4 control-label">退货会员：</label>
							<div class="col-md-8">
						    	<input type="text" class="form-control" name="username" value="$!search.username">
							</div>
						</div>
						<div class="col-md-2">
							<label class="col-md-4 control-label">所属企业：</label>
							<div class="col-md-8">
						    	<input type="text" class="form-control" name="company" value="$!search.company">
							</div>
						</div>
						<div class="col-md-3">
							<label class="control-label col-md-4">退货收货时间：</label> 
							<label class="col-md-8">
								<input class="form-control" type="text" name="startTime" id="startTime" value="$!startTime" readonly>
								<i class="fa fa-calendar" style="position: absolute;right: 10px;top: 10px"></i>
							</label>
						</div>
						<div class="col-md-3">
							<label class="control-label col-md-2">至：</label> 
							<label class="col-md-8">
								<input class="form-control" type="text" name="endTime" id="endTime" value="$!endTime" readonly>
								<i class="fa fa-calendar" style="position: absolute;right: 10px;top: 10px"></i>
							</label>
						</div>
					</div>
	    		</div>
			</div>
		</form>
	</div>
</div>

<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>数据列表</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
		<div class="actions">
			<a onclick="javascript:alert('功能完善中...');" class="btn white btn-sm" data-toggle="modal"><i class="fa fa-cloud-download"></i> 导出 </a>
		</div>
    </div>
    <div class="portlet-body">
		<div class="tabbable-line ">
			<div class="tab-content">
				<div class="tab-pane active form">
					<div class="table-container table-scrollable">
						<table class="table table-bordered table-hover icheck-table" id="productTable">
							<thead>
									<tr>
					  		 			<th>退货单号</th>
					  		 			<th>订单号</th>
					  		 			<th>退货金额</th>
					  		 			<th>配送方式</th>
					  		 			<th>退货会员</th>
					  		 			<th>所属企业</th>
					  		 			<th>退货人</th>
					  		 			<th>物流公司</th>
					  		 			<th>物流单号</th>
					  		 			<th>退货时间</th>
					  		 			<th>退货仓库</th>
										<th class="col-md-2">操作</th>
									</tr>
								</thead>
								<tbody>
								#foreach($item in $pageOrder.result)
								#set( $warehouse= $warhouserMap.get($item))
					 				<tr>  
									    <td>$!item.id</td>
									    <td>$!item.orderId</td>
									    <td>$!item.reFundFee</td>
									    <td>物流</td>
									    <td>$!item.username</td>
									    <td>$!item.company</td>
									    <td>$!item.username</td>
									    <td>$!item.transCompany</td>
									    <td>$!item.transNum</td>
									    <td>$!item.createDate</td>
									    <td>$!warehouse.corporateName</td>
						    			<td>
											<a class="btn green btn-outline btn-sm ajaxify" href="/orderReGoods/detail?id=$!item.id">
												<i class="fa fa-eye"></i>详情
											</a>
									    </td>		  			
					 				</tr>
								#end
								</tbody>
							</table>
					</div>
					#set($page= $pageOrder)
					#set($pageUrl="/orderReGoods/list?$!queryString&pageNo=")
					#parse("_page.htm")
				</div>
				<div>金额总计：$!f</div>
			</div>
		</div>
    </div>
</div>
<script type="text/javascript">
     $("input[name=id]").focus();
</script>
<script src="/assets/scripts/views-date.js" type="text/javascript"></script>